Optimal. Leaf size=47 \[ 2 a^2 \sqrt {x}+\frac {4 a b \text {ArcTan}\left (\sinh \left (c+d \sqrt {x}\right )\right )}{d}+\frac {2 b^2 \tanh \left (c+d \sqrt {x}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {5544, 3858,
3855, 3852, 8} \begin {gather*} 2 a^2 \sqrt {x}+\frac {4 a b \text {ArcTan}\left (\sinh \left (c+d \sqrt {x}\right )\right )}{d}+\frac {2 b^2 \tanh \left (c+d \sqrt {x}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3852
Rule 3855
Rule 3858
Rule 5544
Rubi steps
\begin {align*} \int \frac {\left (a+b \text {sech}\left (c+d \sqrt {x}\right )\right )^2}{\sqrt {x}} \, dx &=2 \text {Subst}\left (\int (a+b \text {sech}(c+d x))^2 \, dx,x,\sqrt {x}\right )\\ &=2 a^2 \sqrt {x}+(4 a b) \text {Subst}\left (\int \text {sech}(c+d x) \, dx,x,\sqrt {x}\right )+\left (2 b^2\right ) \text {Subst}\left (\int \text {sech}^2(c+d x) \, dx,x,\sqrt {x}\right )\\ &=2 a^2 \sqrt {x}+\frac {4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt {x}\right )\right )}{d}+\frac {\left (2 i b^2\right ) \text {Subst}\left (\int 1 \, dx,x,-i \tanh \left (c+d \sqrt {x}\right )\right )}{d}\\ &=2 a^2 \sqrt {x}+\frac {4 a b \tan ^{-1}\left (\sinh \left (c+d \sqrt {x}\right )\right )}{d}+\frac {2 b^2 \tanh \left (c+d \sqrt {x}\right )}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 48, normalized size = 1.02 \begin {gather*} \frac {2 \left (a \left (a \left (c+d \sqrt {x}\right )+2 b \text {ArcTan}\left (\sinh \left (c+d \sqrt {x}\right )\right )\right )+b^2 \tanh \left (c+d \sqrt {x}\right )\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \,\mathrm {sech}\left (c +d \sqrt {x}\right )\right )^{2}}{\sqrt {x}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 48, normalized size = 1.02 \begin {gather*} 2 \, a^{2} \sqrt {x} + \frac {4 \, a b \arctan \left (\sinh \left (d \sqrt {x} + c\right )\right )}{d} + \frac {4 \, b^{2}}{d {\left (e^{\left (-2 \, d \sqrt {x} - 2 \, c\right )} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 194 vs.
\(2 (41) = 82\).
time = 0.37, size = 194, normalized size = 4.13 \begin {gather*} \frac {2 \, {\left (a^{2} d \sqrt {x} \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, a^{2} d \sqrt {x} \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + a^{2} d \sqrt {x} \sinh \left (d \sqrt {x} + c\right )^{2} + a^{2} d \sqrt {x} - 2 \, b^{2} + 4 \, {\left (a b \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, a b \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + a b \sinh \left (d \sqrt {x} + c\right )^{2} + a b\right )} \arctan \left (\cosh \left (d \sqrt {x} + c\right ) + \sinh \left (d \sqrt {x} + c\right )\right )\right )}}{d \cosh \left (d \sqrt {x} + c\right )^{2} + 2 \, d \cosh \left (d \sqrt {x} + c\right ) \sinh \left (d \sqrt {x} + c\right ) + d \sinh \left (d \sqrt {x} + c\right )^{2} + d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {sech}{\left (c + d \sqrt {x} \right )}\right )^{2}}{\sqrt {x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 55, normalized size = 1.17 \begin {gather*} \frac {2 \, {\left (d \sqrt {x} + c\right )} a^{2}}{d} + \frac {8 \, a b \arctan \left (e^{\left (d \sqrt {x} + c\right )}\right )}{d} - \frac {4 \, b^{2}}{d {\left (e^{\left (2 \, d \sqrt {x} + 2 \, c\right )} + 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.32, size = 77, normalized size = 1.64 \begin {gather*} 2\,a^2\,\sqrt {x}+\frac {8\,\mathrm {atan}\left (\frac {a\,b\,{\mathrm {e}}^{d\,\sqrt {x}}\,{\mathrm {e}}^c\,\sqrt {d^2}}{d\,\sqrt {a^2\,b^2}}\right )\,\sqrt {a^2\,b^2}}{\sqrt {d^2}}-\frac {4\,b^2}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,\sqrt {x}}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________